package dao;

import bean.Emp;

import java.util.List;

public interface EmpDao {
    public int update(Integer empno,Emp emp);
    public int updateEname(Integer empno,String name);
    public int delete(Emp emp);
    public int deleteByEmpno(Integer empno);
    public int deleteByEname(String name);
    public int insert(Emp emp);
    public Emp select(Emp emp);
    public Emp selectByEmpno(Integer empno);
    public Emp selectByEname(String ename);
    public List<Emp> selectAll();
}
